Skip to content

Fix potential null name on iOS#50

Merged
Tom-Ski merged 1 commit into
libgdx:masterfrom
Berstanio:feat/null-vendor-name
Jun 8, 2025
Merged

Fix potential null name on iOS#50
Tom-Ski merged 1 commit into
libgdx:masterfrom
Berstanio:feat/null-vendor-name

Conversation

@Berstanio
Copy link
Copy Markdown
Contributor

@Berstanio Berstanio commented Jun 6, 2025

vendorName is nullable: https://developer.apple.com/documentation/gamecontroller/gcdevice/vendorname?language=objc

This aligns the iOS behaviour with the other backends (at least with the desktop backend).

Or maybe it should be made nullable and handling be left to the user, who can localise the "Unknown Controller" string.

@Tom-Ski Tom-Ski merged commit f51dc6b into libgdx:master Jun 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants